﻿<div class="row">
    <div class="toolbar">
        @if (Utilities.ConvertUtility.BoolParse(ViewBag.InsertPermission))
        {
            <button class="btn btn-primary btn-sm" type="button" ng-click="add()">
                <i class="fa fa-plus fa-fw"></i>Thêm mới
            </button>
        }
        @if (Utilities.ConvertUtility.BoolParse(ViewBag.UpdatePermission))
        {
            <button class="btn btn-primary btn-sm" type="button" ng-click="edit()">
                <i class="fa fa-edit fa-fw"></i>Chỉnh sửa
            </button>
        }
        @if (Utilities.ConvertUtility.BoolParse(ViewBag.DeletePermission))
        {
            <button class="btn btn-primary btn-sm" type="button" ng-click="confirmDelete()">
                <i class="fa fa-trash-o fa-fw"></i>Xóa
            </button>
        }
        @if (Utilities.ConvertUtility.BoolParse(ViewBag.BackEnable))
        {
            <button class="btn btn-primary btn-sm" type="button" ng-click="back()">
                <i class="fa fa-chevron-circle-left fa-fw"></i>Trở lại
            </button>
        }
        @if (Utilities.ConvertUtility.BoolParse(ViewBag.UpdatePermission))
        {
            <button class="btn btn-primary btn-sm" type="button" ng-click="save()">
                <i class="fa fa-floppy-o fa-fw"></i>In
            </button>
            <button class="btn btn-primary btn-sm" type="button" ng-click="dieuxe()">
                <i class="fa fa-floppy-o fa-fw"></i>Điều xe
            </button>
        }

    </div>
</div>
